bits 64
default rel

segment .data
    msg db "Hello World! %d", 0x0d, 0x0a, 0

segment .text
global main
extern ExitProcess

extern printf

main:
    push    rbp
    mov     rbp, rsp
    sub     rsp, 32

    lea     rcx, [msg]
    mov     rdx, 32
    call    printf

    xor     rax, rax
    call    ExitProcess
